﻿// <copyright file="OutputEntryCollection.cs" company="Horiba Medical">
//     Copyright (c) Horiba Medical. All rights reserved.
// </copyright>
// <summary>
//     Collection of OutputEntry.
// </summary>

namespace DoxyOutParser.Parser
{
	using System;
	using System.Collections.Generic;
	using System.Collections.ObjectModel;
	using DoxyOutParser.Parser;

	/// <summary>
	/// Encapsulation of OutputEntry collection for OutputEntry's handling.
	/// </summary>
	public class OutputEntryCollection : Collection<OutputEntry>
	{
		/// <summary>
		/// Initializes a new instance of the OutputEntryCollection class.
		/// </summary>
		public OutputEntryCollection() : base(new List<OutputEntry>())
		{
		}

		/// <summary>
		/// Sorts an OutputEntry collection.
		/// </summary>
		public void Sort()
		{
			List<OutputEntry> list = (List<OutputEntry>)Items;
			list.Sort();
		}
	}
}
